<%--
  Created by IntelliJ IDEA.
  User: wanggege
  Date: 2020/9/2
  Time: 8:19 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="../bootstrap/css/bootstrap.min.css">
    <script src="../bootstrap/js/jquery-3.4.1.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>

    <title>学生信息管理系统</title>
</head>
<script language="javascript">
    function realSysTime(clock){
        var now=new Date(); //创建Date对象
        var year=now.getFullYear(); //获取年份
        var month=now.getMonth(); //获取月份
        var date=now.getDate(); //获取日期
        var day=now.getDay(); //获取星期
        var hour=now.getHours(); //获取小时
        var minu=now.getMinutes(); //获取分钟
        var sec=now.getSeconds(); //获取秒钟
        month=month+1;
        var arr_week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
        var week=arr_week[day]; //获取中文的星期
        var time=year+"年"+month+"月"+date+"日 "+week+" "+hour+":"+minu+":"+sec; //组合系统时间
        clock.innerHTML="系统当前时间:"+time; //显示系统时间
    }
    window.onload=function(){
        window.setInterval("realSysTime(clock)"); //实时获取并显示系统时间
    }
    $("#a").click(function () {
        alert("成绩管理功能暂未开放，敬请期待！")
    })
    $("#b").click(function () {
        alert("密码管理功能暂未开放，敬请期待！")
    })
    $("#c").click(function () {
        albert("权限管理功能暂未开放，敬请期待！")
    })
</script>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1><a href="main.jsp">学生信息管理系统 </a></h1>
                <h2><small><a href="main.jsp">Student Information Manager System</a></small></h2>
                <div id="clock" style="float:left; margin-top: -120px; margin-left: 800px ;color: red">
                </div>
                <div style="float:right; margin-top: -20px;">
                    <a href="login.jsp">退出登录</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <ul class="nav nav-pills   nav-justified" style="font-size:larger;">
            <li><a href="main.jsp">主页</a></li>
            <li><a href="error.jsp" id="a">成绩管理</a></li>
            <li><a href="servlet?param=all">学生管理</a></li>
            <li><a href="error.jsp" id="b">密码管理</a></li>
            <li ><a href="error.jsp" id="c">权限管理</a></li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
                   更多..
                </a>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="#">功能一</a>|
                    <a class="dropdown-item" href="#">功能二</a>|
                    <a class="dropdown-item" href="#">功能三</a>
                </div>
            </li>
        </ul>
        </form>
    </div>
</div>
<hr/>